Skip to content

fix(infection): keep a Rerun Failed Tests run's filters when it is mutated or replayed - #167

Merged
roxblnfk merged 1 commit into
mainfrom
fix/mutation-rerun-filters
Nov 28, 2026
Merged

roxblnfk merged 1 commit into
mainfrom
fix/mutation-rerun-filters

Conversation

@roxblnfk

Copy link
Copy Markdown
Collaborator

🔍 What was changed

  • Run with Mutation on a Rerun Failed Tests tab mutates over the failed tests' coverage instead of running the whole suite.
  • A Rerun Failed Tests run replayed from Test History reruns the failed tests again, on both PhpStorm and OpenIDE. The filters are stored in run.json next to the configuration; saved run configurations still never carry them. Older archives read as before.

Review notes

  • PhpRunConfiguration.clone() is final and copies through doWriteExternal → readExternal (checked in the 262 bytecode), so any @Transient field of the runner settings is lost on every clone; the mutation runner copies the filters back itself. OpenIDE's clone() is a shallow copy and keeps them.

Checklist

…tated or replayed

PhpStorm's final clone() round-trips the configuration through writeExternal, which drops the transient rerunFilters, so the mutation runner copies them back. The run archive stores them beside the serialized configuration, since that form leaves them out on both builds.

Assisted-By: Claude Opus 5.5 <[email protected]>
@codecov

codecov Bot commented Nov 28, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 66.66667% with 4 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
...n/com/github/xepozz/testo/runs/TestoRunArchiver.kt 62.50% 1 Missing and 2 partials ⚠️
.../github/xepozz/testo/runs/TestoRunReplayProfile.kt 50.00% 0 Missing and 1 partial ⚠️

📢 Thoughts on this report? Let us know!

@github-actions

Copy link
Copy Markdown
Contributor

Qodana for JVM

It seems all right 👌

No new problems were found according to the checks applied

💡 Qodana analysis was run in the pull request mode: only the changed files were checked

View the detailed Qodana report

To be able to view the detailed Qodana report, you can either:

To get *.log files or any other Qodana artifacts, run the action with upload-result option set to true,
so that the action will upload the files as the job artifacts:

      - name: 'Qodana Scan'
        uses: JetBrains/[email protected]
        with:
          upload-result: true
Contact Qodana team

Contact us at [email protected]

@roxblnfk
roxblnfk merged commit b0543c8 into main Nov 28, 2026
27 of 28 checks passed
@roxblnfk
roxblnfk deleted the fix/mutation-rerun-filters branch November 28, 2026 20:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Rerun with Mutation after Rerun Failed Tests mutates the whole suite instead of the failed tests

1 participant